//
//  HomeDuanZiTableViewCell.m
//  NewsDemo
//
//  Created by 何欣 on 15/7/6.
//  Copyright (c) 2015年 何欣. All rights reserved.
//

#import "HomeDuanZiTableViewCell.h"

@interface HomeDuanZiTableViewCell ()

@property(nonatomic,retain)UILabel *label;

@end

@implementation HomeDuanZiTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        _label = [[UILabel alloc]initWithFrame:CGRectZero];
        _label.numberOfLines = 0;
        _label.textColor = [UIColor darkGrayColor];
        
        
        [self.contentView addSubview:_label];
        
    }
    return self;

}
/**
 *  设置自定义cell的数据
 *
 *  @param height   label的高度
 *  @param labelStr label的内容
 */
-(void)setCellLableHeight:(CGFloat)height
                     text:(NSString *)labelStr{
    _label.frame = CGRectMake(10, 10, KScreenWidth - 10 * 2, height);
    _label.text = labelStr;
}

@end
